package com.blog.backend.controller;

import com.blog.backend.domain.DTO.ClassificationDTO;
import com.blog.backend.service.BlogSettingService;
import com.blog.common.core.domain.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:Auman Time：2024/5/10 13:42
 */
@Api(tags = "博客添加配置controller")
@RequestMapping("/setting")
@RestController
public class BlogSettingController {

    @Autowired
    private BlogSettingService service;

    @PostMapping("/classification")
    public R<String> classification(@Validated @RequestBody ClassificationDTO dto) {
        return service.classification(dto);
    }
}
